package com.b511.swpu.cementbackend.repository;

import com.b511.swpu.cementbackend.entity.MAIN_BlockArea;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

public interface MAIN_BlockAreaRepository extends JpaRepository<MAIN_BlockArea, String>,
        JpaSpecificationExecutor<MAIN_BlockArea> {

    @Transactional
    void deleteByRelationCode(String relationCode);

    @Transactional
    void deleteByBaCode(String baCode);

    MAIN_BlockArea findByRelationCode(String relationCode);

    MAIN_BlockArea findByBaCode(String baCode);
}
